package org.web.demo.dao;


import org.web.demo.common.qo.QueryObject;
import org.web.demo.entity.User;

import java.util.List;

/**
 * @author yexi
 */
public interface IUserDAO {

    void insert(User u);

    void update(User u);

    void delete(long id);

    User selectOne(long id);

    List<User> selectAll();

    int selectCount(QueryObject qo);

    List<User> query(QueryObject  qo);

    User checkUser(String username);

}
